			

<h2><?= $this->translate('user') ?>:<span class="blue"> <?= $this->user->username ?></span></h2><br/>
<?php if ( isset($this->statusForm) ) { ?>
	<?php $this->headScript()->appendFile($this->publicUrl . "Scripts/jquery.js"); ?>
	<?php $this->headScript()->captureStart() ?>
		$(document).ready(function(){
			$("#insertMsg").click( function() {
				$("#message").val( $("#messages option:selected").html() );
			});
		});
	<?php $this->headScript()->captureEnd() ?>
		<select id="messages">
		<?php foreach($this->messages as $msg) { ?>
			<option><?= $msg ?></option>
		<?php } ?>
		</select>
		<a id="insertMsg" href="#"><?= $this->translate('insertSelectedMsg') ?></a>
		<?= $this->statusForm ?>
	<?php } /* if user */ else { include 'login-autocomplete.phtml'; } ?>

<div>
	
	<br/>
	<table class="mess" width="420px" cellspacing="0" cellpadding="0"> 
	<?php foreach($this->statuses as $status ) { ?>
		<tr>
			<td > 
				<b><?= $status['message']; ?></b>
			</td>
			<td width="140px" align="center">
				<span class="blue"><?= $this->translate('at') ?>: <?= $this->date($status['date'], Zend_Date::ISO_8601)->toString('HH:ss dd.MM.yyyy') ?> </span>
			</td>
		</tr>
	<?php } ?>
	</table>
	<center><?= $this->paginationControl($this->statuses, 'Sliding', 'paginatorControl.phtml') ?></center>
</div>